package com.nowcode.community.mapper;

import com.nowcode.community.entity.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName: CommonMapper
 * Package: com.nowcode.community.mapper
 * Description:
 *
 * @Author: 信
 * @Create: 2024/1/24 - 15:44
 */
@Mapper
public interface CommentMapper {

    List<Comment> selectCommentsByEntity(int entityType, int entityId, int offset, int limit);

    int selectCountByEntity(int entityType, int entityId);

    int insertComment(Comment comment);

    Comment selectCommentById(int id);
}
